package cn.walls1717.wallsmall.member.feign;

import cn.walls1717.wallsmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * 订单Feign
 *
 * @author walls1717
 * @since 2022/11/24 12:56
 **/
@FeignClient("wallsmall-order")
public interface OrderFeignService {

    /**
     * 获取当前用户的订单分页列表
     *
     * @param params 分页参数
     * @return 当前用户订单列表分页参数
     */
    @PostMapping("/order/order/listWithItem")
    R listWithItem(@RequestBody Map<String, Object> params);
}
